<!-- 申请提现 -->
<template>
	<view>
		<!-- 头部背景 -->
		<view class="headCss"></view>

		<!-- 控制面板 -->
		<view class="headText">
			<view class="textHead">
				<text class="label">账户余额</text>
				<text style="color:#ff551f ;">￥{{balance}}</text>
			</view>
			<view class="textHead">
				<text class="label">提现金额</text>
				<view class="input-group">
					<input type="number" class="money-input" placeholder="请输入金额" />
					<text class="unit">元</text>
				</view>
			</view>
			<view class="textHead">
				<text class="label">真实姓名</text>
				<input type="text" placeholder="请输入真实姓名" class="money-input" />
			</view>
			<view class="textHead">
				<text class="label">请选择银行</text>
				<uni-data-select style="display: inline-block;" v-model="value" placeholder="请选择银行" :localdata="range"
					@change="change"></uni-data-select>
			</view>
			<view class="textHead">
				<text class="label">请输入银行卡号</text>
				<input type="number" placeholder="请输入银行卡号" class="money-input" />
			</view>
			<view class="buttonText">
				车联网服务平台不会通过任何渠道泄露您的个人信息，请放心填写
			</view>
			<button type="primary"
				style="width: 70%; border-radius: 40rpx; line-height: 70rpx; height: 70rpx;">确认信息并提交</button>
		</view>

		<view class="headText" style="margin-top: 20rpx;">
			<view class="text1">
				提现记录
			</view>
			<view class="div-line" />

			<view class="getMoneyCount" v-for="(item,index) in moneyDetails" :key="index">
				<view class="count1">
					<view>{{item.name}}</view>
					<view>{{item.choose===1?'-':'+'}} {{item.money}}</view>
				</view>

				<view class="count2">
					<view>核销时间：{{item.time}}</view>
					<view>{{item.status===0?'审核通过':'审核不通过'}}</view>
				</view>
			</view>
		</view>

	</view>
</template>

<script>
	export default {
		data() {
			return {
				balance: 1500,
				value: null,
				range: [{
						text: '中国工商银行',
						value: 'icbc'
					},
					{
						text: '中国建设银行',
						value: 'ccb'
					},
					{
						text: '中国农业银行',
						value: 'abc'
					},
					{
						text: '中国银行',
						value: 'boc'
					}
				],
				moneyDetails: [{
					name: '商家提现申请',
					choose: 1,
					money: 100.00,
					time: '2025-10-01 10:00:00',
					status: 1
				}, {
					name: '商家提现申请',
					choose: 1,
					money: 100.00,
					time: '2025-10-01 10:00:00',
					status: 1
				}, {
					name: '商家提现申请',
					choose: 1,
					money: 100.00,
					time: '2025-10-01 10:00:00',
					status: 1
				}, {
					name: '商家提现申请',
					choose: 1,
					money: 100.00,
					time: '2025-10-01 10:00:00',
					status: 1
				}, ]
			}
		},

		methods: {

		}
	}
</script>

<style scoped>
	.headCss {
		background-color: #3385fd;
		width: 750rpx;
		height: 300rpx;
		position: fixed;
	}

	.headText {
		background-color: #fff;
		border-radius: 20rpx;
		width: 710rpx;
		min-height: 400rpx;
		margin-left: 20rpx;
		padding-bottom: 20rpx;
		position: relative;
	}

	/* 分割线 */
	.div-line {
		width: 670rpx;
		margin: 20rpx 20rpx 20rpx 20rpx;
		height: 10rpx;
		background-color: #f7f7f7;
		border-radius: 10rpx;
	}

	.textHead {
		display: flex;
		align-items: center;
		/* 关键：子元素垂直居中，确保同一水平线 */
		gap: 15rpx;
		/* 文字与输入框之间的间距，避免拥挤 */
		padding: 20rpx;
	}


	.label {
		width: 200rpx;
		font-weight: bold;
		font-size: 28rpx;
		color: #333;
		white-space: nowrap;
		/* 防止文字换行 */
	}

	/* 输入框+“元”的组合容器：横向紧凑排列 */
	.input-group {
		display: flex;
		align-items: center;
		/* 输入框与“元”垂直居中 */
		flex: 1;
		/* 占满剩余宽度，让输入框自适应 */
	}

	/* 输入框样式 */
	.money-input {
		flex: 1;
		/* 输入框占满组合容器宽度 */
		height: 70rpx;
		border: 1rpx solid #999999;
		border-radius: 40rpx;
		padding: 0 30rpx;
		font-size: 26rpx;
		outline: none;
	}

	.unit {
		margin-left: 10rpx;
		font-size: 26rpx;
		color: #666;
		white-space: nowrap;
	}



	.buttonText {
		margin: 20rpx 20rpx 40rpx 20rpx;
		color: #999999;
		text-align: center;
		font-size: xx-small;
	}

	.getMoneyCount {
		width: 670rpx;
		margin-left: 20rpx;
		border-bottom: 1rpx solid #aeaeae;
		padding: 20rpx 0rpx;
	}

	.getMoneyCount:last-child {
		border: none;
	}


	.text1 {
		padding: 30rpx 20rpx 0rpx 20rpx;
		font-size: 40rpx;
		font-weight: bold;
	}

	.count1 {
		display: flex;
		justify-content: space-between;
		align-items: center;
		width: 100%;
	}
	.count1>view:nth-child(1) {
		font-size: 32rpx;
		margin-bottom: 10rpx;
	}
	.count1>view:nth-child(2) {
		right: 30rpx;
		color: #ff6c3e;
		font-weight: bold;
	}
	
	.count2 {
		display: flex;
		justify-content: space-between;
		align-items: center;
		width: 100%;
		font-size: small;
	}
	.count2>view:nth-child(1) {
		color: #aeaeae;
		/* margin-bottom: 10rpx; */
	}
	.count2>view:nth-child(2) {
		right: 30rpx;
		color: #999999;
		
	}
</style>